define(function(require, exports){
	exports.onChannel = function(boot, data, app){
		var cont = app.getContainer({
			scenes: 'main',
			full: false,
			sitelist: false,
			setup_btn: false,
			title:LANG('编辑用户渠道授权')
		});

		var id = 34750;
		var mod = app.core.get('userAccessChannelEdit');
		if (!mod){
			app.core.createAsync('userAccessChannelEdit', 'userAccess/action/edit.channel', {
				'el': cont.getDOM()
				,'jumpUrl': -1
			},function(mod){
				mod.reset();
				if(id){
					mod.load(id);
				}
			});
		}
		else {
			mod.reset().load(id);
		}
	};
});
